package top.greatxiaozou.singleton;

public class StaticInnerClassSingleton {
    private static class SingletonHolder{
        private static final StaticInnerClassSingleton instance = new StaticInnerClassSingleton();
    }
    private StaticInnerClassSingleton(){}

    private static final StaticInnerClassSingleton getInstance(){
        return SingletonHolder.instance;
    }
}
